<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019-2-19
  Time: 下午 3:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>FilmList</title>
</head>
<body>
<script type="text/javascript">
    function deleFilm() {
        window.location.href="delFilm";
        alert("确定删除？")
    }

</script>
<table  border="1">
    <tr><td>id</td><td>名字</td><td>票房</td><td>操作</td></tr>
        <c:forEach var="film" items="${filmEntityList}">
            <tr>
                <td width="50">${film.id}</td>
                <td width="300">${film.filmName}</td>
                <td width="200">${film.boxOfficeStr}</td>
                <td>
                    <button onclick="deleFilm()">删除</button>
                    <button onclick="deleFilm()" >编辑</button>
                </td>
            </tr>
        </c:forEach>
</table>
</body>
</html>
